package com.hivekion.files.domain;

import com.baomidou.mybatisplus.annotation.TableField;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnComment;
import com.gitee.sunchenbin.mybatis.actable.annotation.ColumnType;
import com.gitee.sunchenbin.mybatis.actable.annotation.Table;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import lombok.Data;

@Data
@Table(value = "file_info")
public class FileInfo {
      /*@TableId
      @ColumnType(value = MySqlTypeConstant.VARCHAR,length = 50)
      @ColumnComment("主键")
      private String Id;*/
      @Column(
	      name = "id",
	      type = MySqlTypeConstant.INT,
	      length = 11,
	      isKey = true,
	      isAutoIncrement = true)
      private int id;

      @TableField
      @ColumnType(value = MySqlTypeConstant.VARCHAR, length = 50)
      @ColumnComment("文件名称")
      private String fileName;

      @TableField
      @ColumnType(value = MySqlTypeConstant.VARCHAR, length = 50)
      @ColumnComment("Hash")
      private String fileHash;

      @TableField
      @ColumnType(value = MySqlTypeConstant.VARCHAR, length = 250)
      @ColumnComment("文件目录")
      private String filePath;

      @TableField
      @ColumnType(value = MySqlTypeConstant.INT, length = 8)
      @ColumnComment("文件大小")
      private Integer fileSize;
}
